home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19981211-19990422
/
000308_news@watsun.cc.columbia.edu _Tue Mar 2 18:03:01 1999.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@watsun.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id SAA07999
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 2 Mar 1999 18:03:00 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id SAA19532
for kermit.misc@watsun.cc.columbia.edu; Tue, 2 Mar 1999 18:00:39 -0500 (EST)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: apatnaik@aircom.com
Subject: question on kermit script
Date: Tue, 02 Mar 1999 22:48:50 GMT
Organization: Deja News - The Leader in Internet Discussion
Message-ID: <7bhpsf$l17$1@nnrp1.dejanews.com>
To: kermit.misc@mailrelay2.cc.columbia.edu
Hi,
I am attempting to write a kermit script that will initialize a modem,
receive a call, wait for RING tone, and then output all the DTMF digits
received. Note that modem is only expected to receive DTMF digits from an
inbound call and not from another modem. It expects a digit of 9, in this
case.
I have been using the C-Kermit 6.0 book to build the commands.
I have this script so far.. But all my INPUT commands fail...
I tried this using interactive kermit and my commands worked. There is
something about INPUT, MINPUT that is wrong. Appreciate any HELP!!! THANKS!!
define TONERECEIVER {
set modem type multitech
set line /dev/ttya
set speed 2400
set carrier-watch off
;set input echo on
output connect\13
output at&fm0\13
clear input
minput 20 OK {CONNECT}
switch \v(minput) {
:0, echo {No response }, break
:1, echo {Succeeded in getting OK}, break
:2, echo {Found CONNECT}, break
:default, echo {Unexpected response: \v(input) }
}
clear input
output ats0=0\13
minput 20 OK {CONNECT}
switch \v(minput) {
:0, echo {No response }, break
:1, echo {Succeeded in getting OK WAIT FOR RING}, break
:2, echo {Found CONNECT}, break
:default, echo {Unexpected response: \v(input) }
}
clear input
minput 20 RING {CONNECT}
switch \v(minput) {
:0, echo {No response }, break
:1, echo {Succeeded in getting RING}, break
:2, echo {Found CONNECT}, break
:default, echo {Unexpected response: \v(input) }
}
clear input
output ath1\13
minput 20 OK {CONNECT}
switch \v(minput) {
:0, echo {No response }, break
:1, echo {Succeeded in getting OK WAIT FOR DIGIT 9}, break
:2, echo {Found CONNECT}, break
:default, echo {Unexpected response: \v(input) }
}
clear input
output at>dt1\13
minput 20 DTMF9 {CONNECT}
switch \v(minput) {
:0, echo {No response }, break
:1, echo {Succeeded in getting DTMF9}, break
:2, echo {Found CONNECT}, break
:default, echo {Unexpected response: \v(input) }
}
}
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own